package com.example.schoolenterprisealliance.adapter;

import android.util.Log;
import android.view.View;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.schoolenterprisealliance.R;
import com.example.schoolenterprisealliance.bean.Navigation;

import java.util.List;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

public class NavigationAdapter extends BaseQuickAdapter<Navigation, BaseViewHolder> {


    public NavigationAdapter(int layoutResId, @Nullable List<Navigation> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, Navigation item) {
        helper.setText(R.id.tv_navigation,item.getNavigetion());
        Log.e("getNavigetion",item.getNavigetion());
        TextView tv_border=helper.getView(R.id.tv_border);
        tv_border.setVisibility(View.INVISIBLE);
    }
}
